home *** CD-ROM | disk | FTP | other *** search
/ CU Amiga Super CD-ROM 2 / CU Amiga Magazine's Super CD-ROM 02 (1996)(EMAP Images)(GB)[!][issue 1996-04].iso / graphics / dust / dusthelp2 / displace < prev    next >
Text File  |  1995-12-15  |  1KB  |  30 lines

  1.   COMMAND DISPLACE
  2. -----------------------------------------------------------------
  3.     Purpose: displacement-map (similar to Imagine's "Applique")
  4.       Usage: displace(<objectID>,<destID>,<filename>,<magnitude>,
  5.                       <x-translation>,<y-translation>[,<subgroup>]))
  6.    Examples: displace(1,2,ram:pic,32,0,0)
  7.              displace(1,2,ram:pic,32,10,0,sg)
  8.              (Translate the brush 10 units into x-direction, restrict
  9.               it to subgroup "sg".)
  10.       Notes: 1. Advantages:
  11.                  -Now it's possible to have an animated "applique"-
  12.                   effect using an image-sequence (e.g. from a 2D
  13.                   morph-program)
  14.  
  15.                   Loop-example:
  16.                    load(1,plane)
  17.                    for(i,1,60)
  18.                     displace(1,2,pic.%,32,0,0,group1)
  19.                     save(2,obj.%)
  20.                    end
  21.  
  22.                  -The map can be restricted to a subgroup.
  23.              2. The points are always moved into positive z-direction,
  24.                 <magnitude> specifies the maximum displacement.
  25.              3. Because Dust only uses PPM-files you have to
  26.                 set up the parameter MODULEDIR if you want to
  27.                 have automatic conversion of IFF-images.
  28.  
  29. See also SHOWIMAGE and Parameters (MODULEDIR).
  30.